'use strict';

const BaseController = require('egg').Controller;

module.exports = class Controller extends BaseController {
  constructor(ctx) {
    super(ctx);

    ctx.locals = {
      strTitle: '',
      siteClosed: false,
      theCache: ctx.app.theCache,
      theUser: ctx.theUser,
      cacheCleanCode: ctx.app.cacheCleanCode,
      lang: {},
      ubb: ctx.service.ubb,
      blogVersion: ctx.app.blogVersion,
    };
  }
}
